Bit-Parallel Tree Pattern Matching Algorithms for Unordered Labeled Trees

نویسندگان

  • Hiroaki Yamamoto
  • Daichi Takenouchi
چکیده

The following tree pattern matching problem is considered: Given two unordered labeled trees P and T , find all occurrences of P in T . Here P and T are called a pattern tree and a target tree, respectively. We first introduce a new problem called the pseudo-tree pattern matching problem. Then we show two efficient bit-parallel algorithms for the pseudo-tree pattern matching problem. One runs in O(LP ·n·l·d h W e) time and O(n · l ·d h W e) space, and another one runs in O((LP ·n+h ·2) ·dh·l W e) time and O((n+h ·2) ·dh·l W e) space, where n is the number of nodes in T , h and l are the height of P and the number of leaves of P , respectively, and W is the length of a computer-word. The parameter LP , called a recursive level of P , is defined to be the number of occurrences of the same label on a path from the root to a leaf. Hence we have LP ≤ h. Finally, we give an algorithm to extract all occurrences from pseud-occurrences in O(n · LP · l) time and O(n · LP · l) space.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Faster Bit-Parallel Algorithms for Unordered Pseudo-tree Matching and Tree Homeomorphism

In this paper, we consider the unordered pseudo-tree matching problem, which is a problem of, given two unordered labeled trees P and T , finding all occurrences of P in T via such many-to-one matchings that preserve node labels and parent-child relationship. This problem is closely related to the tree pattern matching problem for XPath queries with child axis only. If m > w, we present an effi...

متن کامل

A Bit-Parallel Tree Matching Algorithm for Patterns with Horizontal VLDC's

The tree pattern matching problem is, given two labeled trees P and T , respectively called pattern tree and target tree, to find all occurrences of P within T . Many studies have been undertaken on this problem for both the cases of ordered and unordered trees. To realize flexible matching, a kind of variable-length-don’t-care’s (VLDC’s) have been introduced. In particular, the path-VLDC’s app...

متن کامل

Canonical Forms for Labeled Trees and Their Applications in Frequent Subtree Mining

Tree structures are used extensively in domains such as computational biology, pattern recognition, XML databases, computer networks, and so on. In this paper, we first present two canonical forms for labeled rooted unordered trees–the breadth-first canonical form (BFCF) and the depth-first canonical form (DFCF). Then the canonical forms are applied to the frequent subtree mining problem. Based...

متن کامل

Fast Ordered Tree Matching for XML Query Evaluation

− An XML tree pattern query, represented as a labeled tree, is essentially a complex selection predicate on both structure and content of an XML. Tree pattern matching has been identified as a core operation in querying XML data. We distinguish between two kinds of tree pattern matchings: ordered and unordered tree matching. By the unordered tree matching, only ancestor/descendant and parent/ch...

متن کامل

On the number of reduced trees, cographs, and series-parallel graphs by compression

We give an efficient encoding and decoding scheme for computing a compact representation of a graph in one of unordered reduced trees, cographs, and series-parallel graphs. The unordered reduced trees are rooted trees in which (i) the ordering of children of each vertex does not matter, and (ii) no vertex has exactly one children. This is one of basic models frequently used in many areas. Our a...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2009